package com.powernode.service.impl;

import com.powernode.domain.ProductSku;
import com.powernode.mapper.ProductSkuMapper;
import com.powernode.service.ProductSkuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class ProductSkuServiceImpl implements ProductSkuService{

    @Resource
    private ProductSkuMapper productSkuMapper;

    @Override
    public int deleteByPrimaryKey(String skuId) {
        return productSkuMapper.deleteByPrimaryKey(skuId);
    }

    @Override
    public int insert(ProductSku record) {
        return productSkuMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductSku record) {
        return productSkuMapper.insertSelective(record);
    }

    @Override
    public ProductSku selectByPrimaryKey(String skuId) {
        return productSkuMapper.selectByPrimaryKey(skuId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductSku record) {
        return productSkuMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductSku record) {
        return productSkuMapper.updateByPrimaryKey(record);
    }

}
